package com.example.homemodule.model.bean;

import java.io.Serializable;
import java.util.List;

public class HomeCommodityGroupListEntity {
    private int code;
    private boolean result;
    //    private String status;
    private String msg;
    private List<Commodity> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

//    public boolean isResult() {
//        return result;
//    }
//
//    public void setResult(boolean result) {
//        this.result = result;
//    }

    public List<Commodity> getData() {
        return data;
    }

    public void setData(List<Commodity> data) {
        this.data = data;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class Commodity implements Serializable {

//    groupId	String	169798064275457
//    combo	Boolean	false
//    name	String	定期购
//    icon	String
//    imageUrl	String
//    url	Null	null
//    cartQuantity	Integer	0
//    displayOrder	Integer	0
//    departmentIdList	Null	null
//    storeId	Null	null
//    isTop	Integer	1

//    groupId	String	分组ID
//    combo	boolean	是否套餐
//    name	String	分组名称
//    icon	String	图标
//    imageUrl	String	图片
//    url	String	图片跳转地址
//    isTop	Integer	是否置顶：0否、1是

        private String groupId;
        private boolean combo;
        private String name;
        private String icon;
        private String imageUrl;
        private String url;
        private int cartQuantity;
        private int displayOrder;
        private int isTop;


        public String getGroupId() {
            return groupId;
        }

        public void setGroupId(String groupId) {
            this.groupId = groupId;
        }

        public boolean isCombo() {
            return combo;
        }

        public void setCombo(boolean combo) {
            this.combo = combo;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getCartQuantity() {
            return cartQuantity;
        }

        public void setCartQuantity(int cartQuantity) {
            this.cartQuantity = cartQuantity;
        }

        public int getDisplayOrder() {
            return displayOrder;
        }

        public void setDisplayOrder(int displayOrder) {
            this.displayOrder = displayOrder;
        }

        public int getIsTop() {
            return isTop;
        }

        public void setIsTop(int isTop) {
            this.isTop = isTop;
        }
    }
}
